package com.martini.satoken01.enums;

/**
 * 固钉背景类型枚举类
 *
 * @author martini at 2021/12/28 11:21
 */
public enum PinBackgroundTypes {

    /**
     * 背景为颜色, 值为前端css可处理的值, 如blue, #aaa等
     */
    COLOR((short) 0, "COLOR"),

    /**
     * 背景为图片, 值为前端css可处理的值, 可以为url, base64等
     */
    IMAGE((short) 1, "IMAGE");

    private short code;
    private String msg;

    PinBackgroundTypes(short code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public short getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
